%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% This file is part of the book
%%
%% Cryptography
%% http://code.google.com/p/crypto-book/
%%
%% Copyright (C) 2007--2010 David R. Kohel <David.Kohel@univmed.fr>
%% Copyright (C) 2010 Minh Van Nguyen <nguyenminh2@gmail.com>
%%
%% See the file COPYING for copying conditions.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\documentclass[a4paper,twoside,12pt]{book}
\usepackage{mystyle}

\begin{document}

\title{\Huge\bf Cryptography}
\author{David R.~Kohel}
\maketitle

%% Copyright page
{\thispagestyle{empty}
  \input{tex/notice.tex} \\\\
  \textbf{Edition} \\
  Version~\documentEdition \\
  \today
}

\frontmatter
%% preface page
\input{tex/preface.tex}
\addcontentsline{toc}{chapter}{Preface}
\let\cleardoublepage\clearpage
%% table of contents
\setcounter{tocdepth}{1}
\tableofcontents
\let\cleardoublepage\clearpage
%% list of tables
\listoftables
\addcontentsline{toc}{chapter}{List of Tables}
\let\cleardoublepage\clearpage

%% Book chapters
\mainmatter
\input{tex/introduction.tex}
\input{tex/classical.tex}
\input{tex/elementary-cryptanalysis.tex}
\input{tex/information-theory.tex}
\input{tex/block-ciphers.tex}
\input{tex/stream-ciphers.tex}
\input{tex/number-theory.tex}
\input{tex/pubkey-crypto.tex}
\input{tex/digital-signatures.tex}
\input{tex/secret-sharing.tex}

%% Appendices
\appendix
\input{tex/sage-constructions.tex}
\input{tex/sage-cryptosystems.tex}
\input{tex/solutions.tex}
\input{tex/revisions.tex}

%% Back matter
\backmatter
\cleardoublepage
\addcontentsline{toc}{chapter}{Index}
\printindex

\end{document}
